package com.webserver.core;

import com.webserver.http.HttpServletRequest;

import java.io.IOException;
import java.io.InputStream;
import java.net.Socket;
import java.util.HashMap;
import java.util.Map;

public class ClientHandler implements Runnable{
    private Socket socket;


    public ClientHandler(Socket socket) {
        this.socket = socket;


    }
    public void run(){
        try {

            //解析请求
            HttpServletRequest request = new HttpServletRequest(socket);

            //处理请求


            //发送响应


        } catch (IOException e) {
            e.printStackTrace();
        }


    }


}
